﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@model IEnumerable<sipfe.model.dataAccess.SIPDetCompGrupo>
@{   
    int i = 0;   
}<br />
<br/>
<table style="width:1000px;" border="1" cellpadding="0" cellspacing="0"  class="tablaDetalle">
    <tr class="tituloDetalleBlue_1" align="center">
        <td style="width:15px;">#</td>                                    
        <td align="left">Nombre Elemento</td>
        <td align="left" style="width:160px;">Nombre Corto</td>
        <td style="width:20px;">Id</td>
        <td style="width:80px;">Id Elemento</td>
        <td style="width:50px;">Id Grupo</td>              
        <td style="width:90px;">Fec. Ini. Vig.</td>
        <td style="width:90px;">Fec. Fin Vig.</td>
        <td style="width:120px;">Fecha Registro</td>
        <td style="width:120px;">Usuario</td>                                     
    </tr>
    
    @foreach (var item in Model)
    {
        i++;
        <tr class="@(i%2 != 0 ? "odd" : "even")" align="center" id="trDet2@(i)">
            <td>@i</td>
            <td align="left">@item.SIPDetCompendio.vNomDetalle</td>
            <td align="left">@item.SIPDetCompendio.vNomCorto</td>
            <td>@item.nIdeGrupo</td>            
            <td>@item.nIdeDetElemento</td>  
            <td>@item.nIdeDetalleGrupo</td>
            <td>@String.Format("{0:dd/MM/yyyy}",item.dtFecIniVig)</td>
            <td>
            @if (@item.dtFecFinVig.ToString().Length <= 0) {               
                <span><span class="letraLink8" onclick="javascript:cerrarVigenciaEnGrupo(this,'@item.nIdeGrupo');">Cerrar Vigencia</span></span>
            }else{
                @String.Format("{0:dd/MM/yyyy}", item.dtFecFinVig);
            }
        </td>
        <td>@String.Format("{0:dd/MM/yyyy HH:mm}",item.dtFecReg)</td>
        <td>@item.SIPMaeUsuario.vCodUsuario</td>
        </tr>
    }
</table>